#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
struct s
{
	int x;
	int* y;
}*p;
int data[5] = { 10,20,30,40,50 };
struct s a[5] = { 100,&data[0],200,&data[1],300,&data[2],400,&data[3],500,&data[4] };
int main()
{
	p = a;
	printf("%d\n", p->x);//100
	printf("%d\n", (*p).x);//100
	printf("%d\n", *p->y);//10 
	printf("%d\n", *(*p).y);//10
	printf("%d\n", ++p->x);//101
	printf("%d\n", (++p)->x);//200
	printf("%d\n", p->x++);//200
	printf("%d\n", p->x);//201
	printf("%d\n", ++(*p->y));//21
	printf("%d\n", ++ * p->y);//22
	printf("%d\n", *++p->y);//30
	printf("%d\n", p->x);//201
	printf("%d\n", *(++p)->y);//30
	printf("%d\n", p->x);//300
	printf("%d\n", *p->y++);//30
	printf("%d\n", p->x);//300
	printf("%d\n", *(p->y)++);//40
	printf("%d\n", p->x);//300
	printf("%d\n", *p++->y);//50
	printf("%d\n", p->x);//400
	return 0;
}